package com.comptel.actions.example;

import com.comptel.actions.Action;
import com.comptel.actions.ActionResult;

public class StringCountAction implements Action {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	public String getName() {
		return "count";
	}

	@Override
	public ActionResult execute(Object obj) {
		return new SimpleActionResult(((String[])obj).length+"");
	}
}
